package View;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Color;

public class CadastroProfessor {
    private static JFrame janela;
	private JPanel contentPane;
	private JTextField txtId;
	private JTextField txtRg;
	private JTextField txtNome;
	private JTextField txtTelefone;
	private JTextField txtCel;
	private JTextField txtEndereco;
	private JTextField txtN;
	private JTextField txtCidade;
	private JTextField txtEstado;
	
	private JTextField txtNascimento;
		
	/**
	 * Launch the application.
	 */
	public static void iniciar (){
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					CadastroProfessor frame = new CadastroProfessor();
					
					janela.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public CadastroProfessor() {
		janela =new JFrame ("Cadastro Professor");
		janela.setSize(600,400);

		
		
		
		contentPane = new JPanel();
		
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		janela.setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblId = new JLabel("ID:");
		lblId.setBounds(10, 25, 46, 14);
		contentPane.add(lblId);
		
		txtId = new JTextField();
		txtId.setBounds(48, 22, 86, 20);
		contentPane.add(txtId);
		txtId.setColumns(10);
		
		JLabel lblRg = new JLabel("RG");
		lblRg.setBounds(160, 25, 46, 14);
		contentPane.add(lblRg);
		
		txtRg = new JTextField();
		txtRg.setBounds(213, 22, 86, 20);
		contentPane.add(txtRg);
		txtRg.setColumns(10);
		
		JLabel lblNome = new JLabel("Nome");
		lblNome.setBounds(10, 67, 46, 14);
		contentPane.add(lblNome);
		
		txtNome = new JTextField();
		txtNome.setBounds(48, 64, 86, 20);
		contentPane.add(txtNome);
		txtNome.setColumns(10);
		
		JLabel lblTelefone = new JLabel("Telefone");
		lblTelefone.setBounds(160, 67, 58, 14);
		contentPane.add(lblTelefone);
		
		txtTelefone = new JTextField();
		txtTelefone.setBounds(213, 64, 86, 20);
		contentPane.add(txtTelefone);
		txtTelefone.setColumns(10);
		
		JLabel lblCel = new JLabel("Cel");
		lblCel.setBounds(10, 115, 46, 14);
		contentPane.add(lblCel);
		
		txtCel = new JTextField();
		txtCel.setBounds(48, 112, 86, 20);
		contentPane.add(txtCel);
		txtCel.setColumns(10);
		
		JLabel lblEndereco = new JLabel("Endereco");
		lblEndereco.setBounds(160, 115, 58, 14);
		contentPane.add(lblEndereco);
		
		txtEndereco = new JTextField();
		txtEndereco.setBounds(239, 112, 116, 20);
		contentPane.add(txtEndereco);
		txtEndereco.setColumns(10);
		
		JLabel lblN = new JLabel("n\u00BA");
		lblN.setBounds(381, 115, 46, 14);
		contentPane.add(lblN);
		
		txtN = new JTextField();
		txtN.setBounds(413, 112, 86, 20);
		contentPane.add(txtN);
		txtN.setColumns(10);
		
		JLabel lblCidade = new JLabel("Cidade");
		lblCidade.setBounds(10, 157, 46, 14);
		contentPane.add(lblCidade);
		
		txtCidade = new JTextField();
		txtCidade.setBounds(48, 154, 86, 20);
		contentPane.add(txtCidade);
		txtCidade.setColumns(10);
		
		JLabel lblEstadoxx = new JLabel("Estado ");
		lblEstadoxx.setBounds(160, 157, 70, 14);
		contentPane.add(lblEstadoxx);
		
		txtEstado = new JTextField();
		txtEstado.setBounds(213, 154, 86, 20);
		contentPane.add(txtEstado);
		txtEstado.setColumns(10);
		
	
		
		
		
		//Listener do adicionar
		JButton btnAdicionar = new JButton("Adicionar");
		btnAdicionar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				
			}
		});
		
		btnAdicionar.setBounds(28, 308, 89, 23);
		contentPane.add(btnAdicionar);
		
		//listener do remover
		JButton btnRemover = new JButton("Remover");
		btnRemover.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				
			}
		});
		btnRemover.setBounds(171, 308, 89, 23);
		contentPane.add(btnRemover);
		
		//listener do pesquisar
		JButton btnPesquisar = new JButton("Pesquisar");
		btnPesquisar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnPesquisar.setBounds(308, 308, 116, 23);
		contentPane.add(btnPesquisar);
		
		
		
		//listener do alterar
		JButton btnAlterar = new JButton("Alterar");
		btnAlterar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnAlterar.setBounds(458, 308, 89, 23);
		contentPane.add(btnAlterar);
		
		JLabel lblNasc = new JLabel("Nasc.");
		lblNasc.setBounds(413, 25, 46, 14);
		contentPane.add(lblNasc);
		
		txtNascimento = new JTextField();
		txtNascimento.setBounds(461, 22, 86, 20);
		contentPane.add(txtNascimento);
		txtNascimento.setColumns(10);
	}
}
